﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200122B RID: 4651
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class StartRogueCsReq : IMessage<StartRogueCsReq>, IMessage, IEquatable<StartRogueCsReq>, IDeepCloneable<StartRogueCsReq>, IBufferMessage
	{
		// Token: 0x17003AF7 RID: 15095
		// (get) Token: 0x0600D091 RID: 53393 RVA: 0x00231F0B File Offset: 0x0023010B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<StartRogueCsReq> Parser
		{
			get
			{
				return StartRogueCsReq._parser;
			}
		}

		// Token: 0x17003AF8 RID: 15096
		// (get) Token: 0x0600D092 RID: 53394 RVA: 0x00231F12 File Offset: 0x00230112
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return StartRogueCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003AF9 RID: 15097
		// (get) Token: 0x0600D093 RID: 53395 RVA: 0x00231F24 File Offset: 0x00230124
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return StartRogueCsReq.Descriptor;
			}
		}

		// Token: 0x0600D094 RID: 53396 RVA: 0x00231F2B File Offset: 0x0023012B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartRogueCsReq()
		{
		}

		// Token: 0x0600D095 RID: 53397 RVA: 0x00231F54 File Offset: 0x00230154
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartRogueCsReq(StartRogueCsReq other) : this()
		{
			this.disableAeonIdList_ = other.disableAeonIdList_.Clone();
			this.trialAvatarIdList_ = other.trialAvatarIdList_.Clone();
			this.areaId_ = other.areaId_;
			this.baseAvatarIdList_ = other.baseAvatarIdList_.Clone();
			this.monsterId_ = other.monsterId_;
			this.aeonId_ = other.aeonId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D096 RID: 53398 RVA: 0x00231FCF File Offset: 0x002301CF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartRogueCsReq Clone()
		{
			return new StartRogueCsReq(this);
		}

		// Token: 0x17003AFA RID: 15098
		// (get) Token: 0x0600D097 RID: 53399 RVA: 0x00231FD7 File Offset: 0x002301D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> DisableAeonIdList
		{
			get
			{
				return this.disableAeonIdList_;
			}
		}

		// Token: 0x17003AFB RID: 15099
		// (get) Token: 0x0600D098 RID: 53400 RVA: 0x00231FDF File Offset: 0x002301DF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> TrialAvatarIdList
		{
			get
			{
				return this.trialAvatarIdList_;
			}
		}

		// Token: 0x17003AFC RID: 15100
		// (get) Token: 0x0600D099 RID: 53401 RVA: 0x00231FE7 File Offset: 0x002301E7
		// (set) Token: 0x0600D09A RID: 53402 RVA: 0x00231FEF File Offset: 0x002301EF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AreaId
		{
			get
			{
				return this.areaId_;
			}
			set
			{
				this.areaId_ = value;
			}
		}

		// Token: 0x17003AFD RID: 15101
		// (get) Token: 0x0600D09B RID: 53403 RVA: 0x00231FF8 File Offset: 0x002301F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> BaseAvatarIdList
		{
			get
			{
				return this.baseAvatarIdList_;
			}
		}

		// Token: 0x17003AFE RID: 15102
		// (get) Token: 0x0600D09C RID: 53404 RVA: 0x00232000 File Offset: 0x00230200
		// (set) Token: 0x0600D09D RID: 53405 RVA: 0x00232008 File Offset: 0x00230208
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MonsterId
		{
			get
			{
				return this.monsterId_;
			}
			set
			{
				this.monsterId_ = value;
			}
		}

		// Token: 0x17003AFF RID: 15103
		// (get) Token: 0x0600D09E RID: 53406 RVA: 0x00232011 File Offset: 0x00230211
		// (set) Token: 0x0600D09F RID: 53407 RVA: 0x00232019 File Offset: 0x00230219
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AeonId
		{
			get
			{
				return this.aeonId_;
			}
			set
			{
				this.aeonId_ = value;
			}
		}

		// Token: 0x0600D0A0 RID: 53408 RVA: 0x00232022 File Offset: 0x00230222
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as StartRogueCsReq);
		}

		// Token: 0x0600D0A1 RID: 53409 RVA: 0x00232030 File Offset: 0x00230230
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(StartRogueCsReq other)
		{
			return other != null && (other == this || (this.disableAeonIdList_.Equals(other.disableAeonIdList_) && this.trialAvatarIdList_.Equals(other.trialAvatarIdList_) && this.AreaId == other.AreaId && this.baseAvatarIdList_.Equals(other.baseAvatarIdList_) && this.MonsterId == other.MonsterId && this.AeonId == other.AeonId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D0A2 RID: 53410 RVA: 0x002320C8 File Offset: 0x002302C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.disableAeonIdList_.GetHashCode();
			num ^= this.trialAvatarIdList_.GetHashCode();
			if (this.AreaId != 0U)
			{
				num ^= this.AreaId.GetHashCode();
			}
			num ^= this.baseAvatarIdList_.GetHashCode();
			if (this.MonsterId != 0U)
			{
				num ^= this.MonsterId.GetHashCode();
			}
			if (this.AeonId != 0U)
			{
				num ^= this.AeonId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D0A3 RID: 53411 RVA: 0x00232163 File Offset: 0x00230363
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D0A4 RID: 53412 RVA: 0x0023216B File Offset: 0x0023036B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D0A5 RID: 53413 RVA: 0x00232174 File Offset: 0x00230374
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AeonId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.AeonId);
			}
			this.trialAvatarIdList_.WriteTo(ref output, StartRogueCsReq._repeated_trialAvatarIdList_codec);
			this.disableAeonIdList_.WriteTo(ref output, StartRogueCsReq._repeated_disableAeonIdList_codec);
			this.baseAvatarIdList_.WriteTo(ref output, StartRogueCsReq._repeated_baseAvatarIdList_codec);
			if (this.MonsterId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.MonsterId);
			}
			if (this.AreaId != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.AreaId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D0A6 RID: 53414 RVA: 0x0023221C File Offset: 0x0023041C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.disableAeonIdList_.CalculateSize(StartRogueCsReq._repeated_disableAeonIdList_codec);
			num += this.trialAvatarIdList_.CalculateSize(StartRogueCsReq._repeated_trialAvatarIdList_codec);
			if (this.AreaId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AreaId);
			}
			num += this.baseAvatarIdList_.CalculateSize(StartRogueCsReq._repeated_baseAvatarIdList_codec);
			if (this.MonsterId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MonsterId);
			}
			if (this.AeonId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AeonId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D0A7 RID: 53415 RVA: 0x002322C4 File Offset: 0x002304C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(StartRogueCsReq other)
		{
			if (other == null)
			{
				return;
			}
			this.disableAeonIdList_.Add(other.disableAeonIdList_);
			this.trialAvatarIdList_.Add(other.trialAvatarIdList_);
			if (other.AreaId != 0U)
			{
				this.AreaId = other.AreaId;
			}
			this.baseAvatarIdList_.Add(other.baseAvatarIdList_);
			if (other.MonsterId != 0U)
			{
				this.MonsterId = other.MonsterId;
			}
			if (other.AeonId != 0U)
			{
				this.AeonId = other.AeonId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D0A8 RID: 53416 RVA: 0x0023235B File Offset: 0x0023055B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D0A9 RID: 53417 RVA: 0x00232364 File Offset: 0x00230564
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 24U)
				{
					if (num <= 16U)
					{
						if (num == 8U)
						{
							this.AeonId = input.ReadUInt32();
							continue;
						}
						if (num != 16U)
						{
							goto IL_46;
						}
					}
					else if (num != 18U)
					{
						if (num != 24U)
						{
							goto IL_46;
						}
						goto IL_7B;
					}
					this.trialAvatarIdList_.AddEntriesFrom(ref input, StartRogueCsReq._repeated_trialAvatarIdList_codec);
					continue;
				}
				if (num <= 48U)
				{
					if (num == 26U)
					{
						goto IL_7B;
					}
					if (num != 48U)
					{
						goto IL_46;
					}
				}
				else if (num != 50U)
				{
					if (num == 72U)
					{
						this.MonsterId = input.ReadUInt32();
						continue;
					}
					if (num != 120U)
					{
						goto IL_46;
					}
					this.AreaId = input.ReadUInt32();
					continue;
				}
				this.baseAvatarIdList_.AddEntriesFrom(ref input, StartRogueCsReq._repeated_baseAvatarIdList_codec);
				continue;
				IL_46:
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				continue;
				IL_7B:
				this.disableAeonIdList_.AddEntriesFrom(ref input, StartRogueCsReq._repeated_disableAeonIdList_codec);
			}
		}

		// Token: 0x0400539B RID: 21403
		private static readonly MessageParser<StartRogueCsReq> _parser = new MessageParser<StartRogueCsReq>(() => new StartRogueCsReq());

		// Token: 0x0400539C RID: 21404
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400539D RID: 21405
		public const int DisableAeonIdListFieldNumber = 3;

		// Token: 0x0400539E RID: 21406
		private static readonly FieldCodec<uint> _repeated_disableAeonIdList_codec = FieldCodec.ForUInt32(26U);

		// Token: 0x0400539F RID: 21407
		private readonly RepeatedField<uint> disableAeonIdList_ = new RepeatedField<uint>();

		// Token: 0x040053A0 RID: 21408
		public const int TrialAvatarIdListFieldNumber = 2;

		// Token: 0x040053A1 RID: 21409
		private static readonly FieldCodec<uint> _repeated_trialAvatarIdList_codec = FieldCodec.ForUInt32(18U);

		// Token: 0x040053A2 RID: 21410
		private readonly RepeatedField<uint> trialAvatarIdList_ = new RepeatedField<uint>();

		// Token: 0x040053A3 RID: 21411
		public const int AreaIdFieldNumber = 15;

		// Token: 0x040053A4 RID: 21412
		private uint areaId_;

		// Token: 0x040053A5 RID: 21413
		public const int BaseAvatarIdListFieldNumber = 6;

		// Token: 0x040053A6 RID: 21414
		private static readonly FieldCodec<uint> _repeated_baseAvatarIdList_codec = FieldCodec.ForUInt32(50U);

		// Token: 0x040053A7 RID: 21415
		private readonly RepeatedField<uint> baseAvatarIdList_ = new RepeatedField<uint>();

		// Token: 0x040053A8 RID: 21416
		public const int MonsterIdFieldNumber = 9;

		// Token: 0x040053A9 RID: 21417
		private uint monsterId_;

		// Token: 0x040053AA RID: 21418
		public const int AeonIdFieldNumber = 1;

		// Token: 0x040053AB RID: 21419
		private uint aeonId_;
	}
}
